#include <cstdio>
 
int isFirst = 1;
 
void func(int x, int m)
{
    if ( x == 0 ) {
        return;
    }
    int b = x % 2;
    func(x/2, m+1);
    if ( b == 0 ) {
        return;
    }
         
    if ( isFirst ) {
        isFirst = 0;        
    }
    else{
        printf("+");
    }
    if ( m == 0 ) {
        printf("2(0)");
    }
    else if ( m == 1 ) {
        printf("2");
    }
    else {
        printf("2(");
        isFirst = 1;
        func(m, 0);
        printf(")");
    }
}
 
int main()
{
	freopen("power10.in", "r", stdin);
	freopen("power10.ans", "w", stdout);
    int n = 0;
    scanf("%d", &n);
    func(n, 0);
    return 0;
}
